//
//  AboutDetailViewController.m
//  TestARC
//
//  Created by wuxiaoquan on 12-10-16.
//
//

#import "AboutDetailViewController.h"

@interface AboutDetailViewController ()

@end

@implementation AboutDetailViewController
@synthesize textView,imageView,showImage,showText,text;

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    if(!self.showImage)
    {
        [self.imageView removeFromSuperview];
    }
    if (!self.showText) {
        [self.textView removeFromSuperview];
    }
    else
    {
        self.textView.text = self.text;
    }
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
    self.imageView = nil;
    self.textView = nil;
    self.text = nil;
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
